package com.example.dockerdemo.controller;

import com.example.dockerdemo.config.ServerConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author goujian
 * @description: TODO
 * @date 2021/10/203:05 下午
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private ServerConfig serverConfig;

    @RequestMapping("/demo1")
    public String demo1() throws Exception {
        return serverConfig.getUrl();
    }

}
